<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>店铺优惠券管理修改页  - ${web.name}${web.additionalTitle!}</title>
<link href="${root}/u/css/main.css" type="text/css" rel="stylesheet" />
<link href="${root}/u/css/memeber.css" type="text/css" rel="stylesheet" />
<link href="${root}/u/css/buy.css" type="text/css" rel="stylesheet" />
<script src="${sysResRoot}/jquery.js" type="text/javascript"></script>
<script src="${base}/thirdparty/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
	methodChange();
	$("#jvForm").validate();
});
function methodChange() {
	var method = $("input[name=status]:checked").val();
	if(method=="1") {
		$('#fullgive1').show();
		$('#fullgive2').hide();
		$('#fullgive3').hide();
	}else if(method=="2") {
		$('#fullgive1').hide();
		$('#fullgive2').show();
		$('#fullgive3').hide();
	}else if(method=="3") {
		$('#fullgive1').hide();
		$('#fullgive2').hide();
		$('#fullgive3').show();
	}
	return true;
	}
</script>
<style type="text/css">
.method-div{padding:2px 1px;}
.hidden{display:none;}
.country-price{border:1px solid #ccc;padding:2px;margin:2px 0px;}
</style>
</head>
<body>
[#include "../include/shop_top.html"/]
<div class="w1168">
	[#include "店铺中心_导航.html"/]
	<div class="user_right">
        <div class="user_title2">店铺优惠券管理</div>
    	<div class="clear10"></div> 
	    <form class="ropt">
		<input type="submit" value="返回列表" onclick="this.form.action='list.jspx?pageNo=${pageNo}';" class="menu_ok2"/>
     	</form>
        <div class="clear10"></div>   
        <form method="post" action="${base}/coupon/couponUpdate.jspx" id="jvForm">
        <table width="100%" cellpadding="2" cellspacing="1" border="0">
        <tr><td width="120" height="40" align="right"><span>*</span>名称：</td>
        <td><input type="text" name="couponName" class="required address_input"  value="${coupon.couponName!}"/></td>
        </tr>      
        <tr>
        <td height="40" align="right"><span>*</span>优惠券值：</td>
        <td>
        <input type="text" name="couponPrice" class="required address_input" value="${coupon.couponPrice!}"/>
        </td>
        </tr>                      
        <tr>
        <td height="40" align="right">优惠开始时间：</td>
        <td>
        <input type="text" name="couponTime" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" class="required Wdate" value="${coupon.couponTime!}" style="height:22px; width:160px; padding-left:5px;"/></td>
        </tr>
        <tr>
        <td height="40" align="right">优惠结束时间：</td>
        <td>
        <input type="text" name="couponEndTime" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" class="required Wdate" value="${coupon.couponEndTime!}" style="height:22px; width:160px; padding-left:5px;"/></td>
        </tr>
        <tr>
        <td height="40" align="right">至少消费：</td>
        <td><input type="text" name="leastPrice" class="required address_input" value="${coupon.leastPrice}"/></td>
        </tr>
        
        <tr>
        <td height="190" align="right" noHeight="true">优惠券图：</td>
        <td>
        <input type="text" id="uploadImgPath11" name="couponPicture" size="30" class="address_input"/> <input type="button" value="清空" class="menu_ok" onclick="clearImg(11);"/>
        <div class="clear10"></div>
        <span id="ufc11">   <input type="file" id="uploadFile11" size="20"/></span><input type="button" value="上传" onclick="upload(11);" class="menu_ok"/>
        <div class="clear10"></div>
        宽：<input type="text" id="zoomWidth11" value="139" size="5" class="address_input"/> 高：<input type="text" id="zoomHeight11" value="139" size="5" class="address_input"/>
        <input type="button" value="裁剪" onclick="imgCut(11);" class="menu_ok"/>
        <div class="clear10"></div>
        <img id="preImg11" alt="预览" srcRoot="${uploadRoot!}" style="width:100px;height:70px;background-color:#CCCCCC;border:1px solid #333"/>                       
        </td>
        </tr>
        <tr>
        <td>
        </td> 
        </tr>            
        <tr>
        <td height="50">&nbsp;
        
        </td>
        <td height="50">
        <input type="hidden" name="id" value="${coupon.id}"/>
        <input type="hidden" name="pageNo" value="${pageNo!1}"/>
        <input type="submit" value="提交" class="menu_ok"/> &nbsp; <input type="reset" value="重置" class="menu_ok"/>
        </td>
        </tr>
        </table>
        </form>
	</div>
	<div class="clear20"></div>
</div>
[#include "../include/footer_information_bar.html"/]
</body>
</html>